#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct {
	int x;
	int y;
} Node;

int main(void) {
	double *p = calloc(10, sizeof(double));
	if (p == NULL){
		printf("error: calloc failed in main.\n");
		return -1;
	}
	for (size_t i = 0; i < 10; i++){
		printf("%f\n", p[i]);
	}
	free(p);

	Node* p2 = calloc(1, sizeof(Node));
	if (p == NULL) {
		printf("error: calloc failed in main.\n");
		return -1;
	}
	free(p2);

	return 0;
}